package svc

import (
	"mall/service/recommended/api/internal/config"
	"mall/service/recommended/common/gorseclient"
)

type ServiceContext struct {
	Config      config.Config
	GorseClient *client.GorseClient
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:      c,
		GorseClient: client.NewGorseClient(c.Gorse.EntryPoint, c.Gorse.ApiKey),
	}
}
